package com.gewu.pm.bean;

import java.io.Serializable;

/**
 * 功能项数据模型
 */
public class FunctionItemBean implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /** 功能ID */
    private String id;
    /** 功能名称 */
    private String name;
    /** 功能图标资源ID */
    private int iconRes;
    /** 是否已添加到常用功能 */
    private boolean isAdded;
    /** 在常用功能中的位置（-1表示未添加） */
    private int position = -1;

    public FunctionItemBean(String id, String name, int iconRes) {
        this.id = id;
        this.name = name;
        this.iconRes = iconRes;
        this.isAdded = false;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIconRes() {
        return iconRes;
    }

    public void setIconRes(int iconRes) {
        this.iconRes = iconRes;
    }

    public boolean isAdded() {
        return isAdded;
    }

    public void setAdded(boolean added) {
        isAdded = added;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
